package com.ruoyi.logistics.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

import java.util.List;

/**
 * 详细地区对象 log_region
 * 
 * @author ruoyi
 * @date 2023-08-06
 */
public class Region extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    private Long id;

    /** 省市区编号 */
    @Excel(name = "省市区编号")
    private Integer code;

    /** 上级编号 */
    @Excel(name = "上级编号")
    private Integer parentCode;

    /** 区名 */
    @Excel(name = "区名")
    private String name;

    /** 区域等级 */
    @Excel(name = "区域等级")
    private Long level;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 物流中心信息 */
    private List<Center> centerList;

    public List<Center> getCenterList() {
        return centerList;
    }

    public void setCenterList(List<Center> centerList) {
        this.centerList = centerList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(Integer code)
    {
        this.code = code;
    }

    public Integer getCode()
    {
        return code;
    }
    public void setParentCode(Integer parentCode)
    {
        this.parentCode = parentCode;
    }

    public Integer getParentCode()
    {
        return parentCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("parentCode", getParentCode())
            .append("name", getName())
            .append("level", getLevel())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .toString();
    }
}
